<?php
use yii\bootstrap\ActiveForm;
?>
<link rel="stylesheet" href="../static/dist/css/AdminLTE.min.css" type="text/css">
<link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../static/plugins/datatables/jquery.dataTables.css" type="text/css">
<link rel="stylesheet" href="../static/css/admin.css" type="text/css">
<link rel="stylesheet" href="../static/jBox/Skins/Metro/jbox.css" type="text/css">
<style>
    .dataTables_length {
        margin-top: 10px;
    }
    .dataTable>tbody>tr>td {
        vertical-align: middle;
        font-size: 0.8em;
        padding: 8px 18px;
    }
    .dataTable>thead>tr>th {
        vertical-align: middle;
        font-size: 0.8em;
    }
    .source_type_class {
        min-height: 20px;
        padding-left: 20px;
        margin-bottom: 0;
        font-weight: 400;
        cursor: pointer;
    }
    .form-left{
        border-right: 1px solid #dddddd;
    }
    .examine-content{
        width: 1000px;
        margin-left:-300px;
    }
    .examine-content .input-group .form-control{
        margin-bottom: 20px;
        height: 30px ;
        line-height: 30px;
    }
    .examine-content button{
        margin: 10px;
    }
    #table_id_example th, td {
        white-space: nowrap;
    }
</style>
<div class="tabs-panel">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    物料名称:<input class="depart-input" id="searchName" style="width: 120px" type="text">&nbsp;
                    物料编号:<input class="depart-input" id="searchCode" style="width: 120px" type="text">&nbsp;
                    归属仓库:
                    <select id="warehouseId" class="depart-input" style="width: 160px">
                        <option value="">全部仓库</option>
                        <?php foreach($warehouse as $value) { ?>
                            <option value="<?= $value['id']?>"><?= $value['warehouseName']?></option>
                        <?php }?>
                    </select>&nbsp;
                    销售状态：
                    <select id="saleFlg" class="depart-input" style="width: 60px">
                        <option value="">全部</option>
                        <option value="1" selected>上架</option>
                        <option value="0">下架</option>
                    </select>&nbsp;
                    启用禁用：
                    <select id="useFlg" class="depart-input" style="width: 60px">
                        <option value="">全部</option>
                        <option value="1" selected>启用</option>
                        <option value="0">禁用</option>
                    </select>&nbsp;
                    <button type="button" class="btn btn-primary depart-modal" id="select_button" style="width: 80px;">查询</button>&nbsp;
                    <button type="button" class="btn btn-warning depart-modal" id="reset_button" style="width: 80px;">重置</button>
                    <button type="button" class="btn btn-primary depart-modal" id="export_button" style="width: 80px;">导出</button>
                </div>
                <div class="box-body">
                    <a type="button" class="btn btn-success depart-modal" onclick="javascript:window.open('/materiel/detail','_blank')" style="width: 80px;">添加</a>
                    <table id="table_id_example" class="display">
                        <thead>
                        <tr>
                            <th style="width: 5%">操作</th>
                            <th style="width: 5%"><input id="checked_all" type="checkbox" >商品ID</th>
                            <th style="width: 5%">物料名称</th>
                            <th style="width: 5%">物料编号</th>
                            <!--<th style="width: 5%">供应商</th>-->
                            <th style="width: 5%">所属仓库</th>
                            <th style="width: 5%">订货规格描述</th>
                            <th style="width: 5%">订货包装方式</th>
                            <th style="width: 5%">采购单位</th>
                            <th style="width: 5%">订货单位</th>
                            <th style="width: 5%">订货单位/采购单位</th>
                            <th style="width: 5%">订货单位/最小使用单位</th>
                            <th style="width: 5%">最小使用单位说明</th>
                            <th style="width: 5%">税率</th>
                            <th style="width: 5%">质保天数</th>
                            <th style="width: 5%">参考成本价</th>
                            <th style="width: 5%">供货价</th>
                            <th style="width: 5%">排序</th>
                            <th style="width: 5%">库存属性</th>
                            <th style="width: 5%">安全库存</th>
                            <th style="width: 5%">库存管理</th>
                            <th style="width: 5%">销售状态</th>
                            <th style="width: 5%">启用禁用</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 固定js -->
<script type="text/javascript" src="../static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../static/plugins/datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="../static/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="../static/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<script type="text/javascript" src="/static/plugins/treeTable/jquery.treetable.js"></script>
<!-- 图片上传插件 -->
<script type="text/javascript" src="../static/plugins/jquery.form.js"></script>
<!-- 图片显示插件 -->
<script type="text/javascript" src="../static/plugins/layer/layer.js"></script>
<!-- 自定义js -->
<script type="text/javascript" src="/static/app/global.js?version=<?=Yii::$app->params['version']?>"></script>
<script type="text/javascript" src="../static/app/materiel/index.js?version=<?=Yii::$app->params['version']?>"></script>